package org.wjy.post.service.Impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.wjy.post.dao.GoodsDao;
import org.wjy.post.service.GoodsService;
import org.wjy.post.vo.Goods;


/**     
 * 类名称：UserServiceImpl   
 * 类描述：用户信息操作业务逻辑接口实现
 * 创建人：anan   
 * 创建时间：2012-12-21 下午11:08:18   
 * 修改人：anan  
 * 修改时间：2012-12-21 下午11:08:18   
 * 修改备注：   
 * @version        
 * */
@Service("goodsService")
public class GoodsServiceImpl implements GoodsService {
	@Resource(name="goodsDao")
	private GoodsDao goodsDao;

	@Override
	public List<Goods> getGoods() {
		// TODO Auto-generated method stub
		return goodsDao.getgoodslist();
	}

	@Override
	public boolean addGoods(Goods good) {
		// TODO Auto-generated method stub
		return goodsDao.addGoods(good);
	}
	
	@Override
	public boolean updateGoods(Goods good) {
		// TODO Auto-generated method stub
		return goodsDao.updateGoods(good);
	}

	@Override
	public boolean delGoods(int id) {
		// TODO Auto-generated method stub
		return goodsDao.delGoods(id);
	}

	@Override
	public double getprice(String goodid) {
		// TODO Auto-generated method stub
		return goodsDao.getprice(goodid);
	}

	
	


	
	

}
